package com.gaogzhen.service;

import com.gaogzhen.domain.Market;
import com.gaogzhen.domain.UserFavoriteMarket;
import com.baomidou.mybatisplus.extension.service.IService;
    /**
* @author Administrator
* @date 2022-12-10 17:09
*/
public interface UserFavoriteMarketService extends IService<UserFavoriteMarket>{


    /**
     * 用户收藏市场
     * @param userId    用户id
     * @param market    市场信息
     */
    void addFavorite(Long userId, Market market);

    /**
     * 用户取消市场收藏
     * @param userId    用户id
     * @param symbol    交易对
     */
    void cancelFavorite(Long userId, String symbol);
}
